<?php $this->start('admin_menu')?>
	<?php echo $this->element('admin_menu', array('str_item' => 'agents')) ?>
<?php $this->end(); ?>
<div class="credits form">
<?php echo $this->Form->create('Credit'); ?>
	<h1><?php echo __('Add Credit'); ?></h1>
	<table class='form-table'>
		<tr>
			<td class='left-cl-style'>Card ID<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('card_id', array('type' => 'text', 'label' => false, 'maxlength' => 19)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Name<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('name', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Expire date<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('expire_date', array('label' => false)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style'>Agent<span class='star-rq'> * </span></td>
			<td class='right-cl-style'><?php echo $this->Form->input('agent_id', array('label' => false, 'default' => isset($agent_id) ? $agent_id : 0)); ?></td>
		</tr>
		<tr>
			<td class='left-cl-style no-border no-background'>
				(<span class='red-star'>*</span>) Required
			</td>
			<td class='right-cl-style actions no-border no-background'>
				<?php echo $this->Form->input('Submit', array('type' => 'submit', 'label' => false)); ?>
			</td>
		</tr>
	</table>
<?php echo $this->Form->end(); ?>
</div>
<div class='actionct'>
	<span class='btn-act'><span><?php echo $this->Html->link(__('List Credits'), array('action' => 'index'), array('class' => 'back-act')); ?></span></span>
</div>

